package com.jabo.douban.demo.domain.http;

import com.jabo.douban.demo.model.entity.BaseBean;
import com.jabo.douban.demo.model.entity.NewsBean;
import com.jabo.douban.demo.model.entity.RecommendItemBean;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * @anthor JZheng3
 * @Time: 2020/3/2
 */
public interface ApiService {


    @GET("generalnews/index")
    Observable<BaseBean<RecommendItemBean>> getRecommendList(@Query("page") int page, @Query("num") int num);

    @GET("generalnews/index")
    Observable<NewsBean> getNewsBeanList(@Query("page") int page, @Query("num") int num);


}
